﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Distrackting.BusinessLayer
{
    public class Ponto
    {
        private int cod_ponto;
        private float lat;
        private float lng;
        private float alt;
        private int hora;

        public Ponto()
        {
            this.cod_ponto = -1;
            this.lat = 0;
            this.lng = 0;
            this.alt = 0;
            this.hora = DateTime.Today.Hour;
        }

        public Ponto(int cp, float lat, float lng, float alt, DateTime data)
        {
            this.cod_ponto = cp;
            this.lat = lat;
            this.lng = lng;
            this.alt = alt;
            this.hora = data.Hour;
        }

        public Ponto(int cp, float lat, float lng, float alt, int hora)
        {
            this.cod_ponto = cp;
            this.lat = lat;
            this.lng = lng;
            this.alt = alt;
            this.hora = hora;
        }

        public int getCodPonto() { return this.cod_ponto; }
        public float getLatitude() { return this.lat; }
        public float getLongitude() { return this.lng; }
        public float getAltitude() { return this.alt; }
        public int getHora() { return this.hora; }

    }
}
